package com.only4play.portal.cp.bean.outbuilder.outxmlbuilder;

import com.only4play.portal.cp.bean.message.xmlmessage.CpXmlOutMessage;
import com.only4play.portal.cp.bean.message.xmlmessage.CpXmlOutTextMessage;

/**
 * @author liyuncong
 * @version 1.0
 * @file TextBuilder
 * @brief TextBuilder
 * @details TextBuilder
 * @date 2024-06-07
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2024-06-07               liyuncong          Created
 */
public final class XmlTextBuilder extends XmlBaseBuilder<XmlTextBuilder, CpXmlOutMessage> {

    private String content;

    public XmlTextBuilder content() {
        this.content = content;
        return this;
    }

    @Override
    public CpXmlOutMessage build() {
        CpXmlOutTextMessage msg = new CpXmlOutTextMessage();
        setCommon(msg);
        msg.setContent(this.content);
        return msg;
    }
}
